package com.dfbz.demo01_OutputStream;

import java.io.FileOutputStream;
import java.io.OutputStream;

/**
 * @author lscl
 * @version 1.0
 * @intro:
 */
public class Demo04_按照偏移量来写出字节 {
    public static void main(String[] args) throws Exception {

        OutputStream os = new FileOutputStream("001.txt");

        byte[] data = {97, 98, 99, 100};

        os.write(data,2,2);

        os.close();
    }
}
